//
//  BindAliPayControl.m
//  FreeTime
//
//  Created by 王江华 on 16/9/1.
//  Copyright © 2016年 SRDZ.com. All rights reserved.
//
#import "BindAliPayControl.h"
#import "Header.h"
#import "SetAliPasswordControl.h"
@interface BindAliPayControl ()


@end

@implementation BindAliPayControl

- (void)viewDidLoad {
    [super viewDidLoad];
     self.navigationItem.title=@"绑定支付宝";
    [self setupBindAliPay];
}
-(void)setupBindAliPay{

    self.nameView=[[UIView alloc]initWithFrame:CGRectMake(10, 30, WindowWidth-20, 40)];
    self.nameView.layer.borderColor=[ImageUtil colorWithRgb:0xe6e6e6].CGColor;
    self.nameView.layer.borderWidth=1.0f;
    self.NameText=[[UITextField alloc]initWithFrame:CGRectMake(20, 32, WindowWidth-40,35)];
    self.NameText.placeholder=@"请输入要绑定的支付宝姓名";
    self.accountView=[[UIView alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(_nameView.frame)+10, WindowWidth-20, 40)];
    self.accountView.layer.borderColor=[ImageUtil colorWithRgb:0xe6e6e6].CGColor;
    self.accountView.layer.borderWidth=1.0f;
    self.AccountText=[[UITextField alloc]initWithFrame:CGRectMake(20, CGRectGetMaxY(_NameText.frame)+12, WindowWidth-40, 35)];
    self.AccountText.placeholder=@"请输入要绑定的支付宝账号";
    
    
    self.confirmBtn=[[UIButton alloc]initWithFrame:CGRectMake(60, CGRectGetMaxY(_AccountText.frame)+40, WindowWidth-120, 40)];
    
    
    [self.confirmBtn setBackgroundImage:[UIImage imageNamed:@"querenbiao"] forState:UIControlStateNormal];
    
    [self.confirmBtn setTitle:@"确定" forState:UIControlStateNormal];
    
    [self.confirmBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];

    [self.confirmBtn addTarget:self action:@selector(confirmAction) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    
    [self.view addSubview:self.nameView];
    [self.view addSubview:self.accountView];
    
    [self.view addSubview:self.NameText];
    
    [self.view addSubview:self.AccountText];
    [self.view addSubview:self.confirmBtn];
    
}
-(void)confirmAction{

    SetAliPasswordControl *aliPass=[[SetAliPasswordControl alloc]init];
    
    
    [self.navigationController  pushViewController:aliPass animated:YES];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
